package cn.mihoyo.base.mapper;

import cn.mihoyo.base.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    void add(T t);

    void delete(Long id);

    void update(T t);

    T findById(Long id);

    List<T> findAll();

    Integer queryCount(BaseQuery query);

    List<T> queryByPage(BaseQuery query);

    void batchDel(List<Long> ids);
}
